package com.youkeyi.ddy.cloud.common.api.basic.pub.user;

import com.youkeyi.ddy.cloud.common.api.basic.pub.user.dto.PublicUserAuthLoginListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.user.param.PublicUserAuthLoginCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.user.param.PublicUserAuthLoginQueryCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * PublicUserAuthLoginCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicUserAuthLoginCloudServiceFallback.class)
@RequestMapping("/public/user/auth/login")
public interface PublicUserAuthLoginCloudService {

    /**
     * 查询用户授权登陆列表.
     *
     * @param param the param
     * @return the user list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicUserAuthLoginListCloudDto query(@RequestBody PublicUserAuthLoginQueryCloudParam param);

    /**
     * 新增授权登陆列表.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody PublicUserAuthLoginCreateCloudParam param);

}
